package com.voltmao.persistent.model;

import org.mybatis.annotation.Field;
import org.mybatis.annotation.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * sys_message
 */
@Table(name="sys_message")
public class SysMessage implements Serializable {
    /**
     * 主键
     */
    public static final String DATAID = "dataId";

    /**
     * 主键
     */
    @Field(columnName="data_id", jdbcType="VARCHAR", javaType=String.class, length=36, scale=0)
    private String dataId;

    /**
     * 发布消息者
     */
    public static final String FORCORPEMPLOYESUSERFROM = "forCorpEmployesUserFrom";

    /**
     * 发布消息者
     */
    @Field(columnName="for_corp_employes_user_from", jdbcType="VARCHAR", javaType=String.class, length=36, scale=0)
    private String forCorpEmployesUserFrom;

    /**
     * 接收消息者
     */
    public static final String FORCORPEMPLOYESUSERTO = "forCorpEmployesUserTo";

    /**
     * 接收消息者
     */
    @Field(columnName="for_corp_employes_user_to", jdbcType="VARCHAR", javaType=String.class, length=36, scale=0)
    private String forCorpEmployesUserTo;

    /**
     * createDate
     */
    public static final String CREATEDATE = "createDate";

    /**
     * createDate
     */
    @Field(columnName="create_date", jdbcType="TIMESTAMP", javaType=Date.class, length=19, scale=0)
    private Date createDate;

    /**
     * updateDate
     */
    public static final String UPDATEDATE = "updateDate";

    /**
     * updateDate
     */
    @Field(columnName="update_date", jdbcType="TIMESTAMP", javaType=Date.class, length=19, scale=0)
    private Date updateDate;

    /**
     * 消息响应地址
     */
    public static final String ACTIONURL = "actionUrl";

    /**
     * 消息响应地址
     */
    @Field(columnName="action_url", jdbcType="VARCHAR", javaType=String.class, length=255, scale=0)
    private String actionUrl;

    /**
     * isDel
     */
    public static final String ISDEL = "isDel";

    /**
     * isDel
     */
    @Field(columnName="is_del", jdbcType="INTEGER", javaType=Integer.class, length=10, scale=0)
    private Integer isDel;

    /**
     * isRead
     */
    public static final String ISREAD = "isRead";

    /**
     * isRead
     */
    @Field(columnName="is_read", jdbcType="INTEGER", javaType=Integer.class, length=10, scale=0)
    private Integer isRead;

    /**
     * 消息文本
     */
    public static final String MSGTEXT = "msgText";

    /**
     * 消息文本
     */
    @Field(columnName="msg_text", jdbcType="VARCHAR", javaType=String.class, length=1000, scale=0)
    private String msgText;

    /**
     * 消息类型
     */
    public static final String FORDICMSGLX = "forDicMsglx";

    /**
     * 消息类型
     */
    @Field(columnName="for_dic_msglx", jdbcType="INTEGER", javaType=Integer.class, length=10, scale=0)
    private Integer forDicMsglx;

    /**
     * 通知标题
     */
    public static final String MSGTYPE = "msgType";

    /**
     * 通知标题
     */
    @Field(columnName="msg_title", jdbcType="VARCHAR", javaType=String.class, length=1000, scale=0)
    private String msgTitle;

    private static final long serialVersionUID = 1L;

    /**
     * @return dataId
     *         主键
     */
    public String getDataId() {
        return dataId;
    }

    /**
     * @param dataId
     *         主键
     */
    public void setDataId(String dataId) {
        this.dataId = dataId == null ? null : dataId.trim();
    }

    /**
     * @return forCorpEmployesUserFrom
     *         发布消息者
     */
    public String getForCorpEmployesUserFrom() {
        return forCorpEmployesUserFrom;
    }

    /**
     * @param forCorpEmployesUserFrom
     *         发布消息者
     */
    public void setForCorpEmployesUserFrom(String forCorpEmployesUserFrom) {
        this.forCorpEmployesUserFrom = forCorpEmployesUserFrom == null ? null : forCorpEmployesUserFrom.trim();
    }

    /**
     * @return forCorpEmployesUserTo
     *         接收消息者
     */
    public String getForCorpEmployesUserTo() {
        return forCorpEmployesUserTo;
    }

    /**
     * @param forCorpEmployesUserTo
     *         接收消息者
     */
    public void setForCorpEmployesUserTo(String forCorpEmployesUserTo) {
        this.forCorpEmployesUserTo = forCorpEmployesUserTo == null ? null : forCorpEmployesUserTo.trim();
    }

    /**
     * @return createDate
     *         createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     *         createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return updateDate
     *         updateDate
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     *         updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return actionUrl
     *         消息响应地址
     */
    public String getActionUrl() {
        return actionUrl;
    }

    /**
     * @param actionUrl
     *         消息响应地址
     */
    public void setActionUrl(String actionUrl) {
        this.actionUrl = actionUrl == null ? null : actionUrl.trim();
    }

    /**
     * @return isDel
     *         isDel
     */
    public Integer getIsDel() {
        return isDel;
    }

    /**
     * @param isDel
     *         isDel
     */
    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    /**
     * @return isRead
     *         isRead
     */
    public Integer getIsRead() {
        return isRead;
    }

    /**
     * @param isRead
     *         isRead
     */
    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    /**
     * @return msgText
     *         消息文本
     */
    public String getMsgText() {
        return msgText;
    }

    /**
     * @param msgText
     *         消息文本
     */
    public void setMsgText(String msgText) {
        this.msgText = msgText == null ? null : msgText.trim();
    }

    /**
     * @return forDicMsglx
     *         消息类型
     */
    public Integer getForDicMsglx() {
        return forDicMsglx;
    }

    /**
     * @param forDicMsglx
     *         消息类型
     */
    public void setForDicMsglx(Integer forDicMsglx) {
        this.forDicMsglx = forDicMsglx;
    }

    /**
     * @return msgTitle
     *         通知标题
     */
    public String getMsgTitle() {
        return msgTitle;
    }

    /**
     * @param msgTitle
     *         通知标题
     */
    public void setMsgTitle(String msgTitle) {
        this.msgTitle = msgTitle == null ? null : msgTitle.trim();
    }
}